import numpy
from functools import reduce
import numpy as np
domain = 4
value_list = np.ones(domain, numpy.int)


def to_string(array):
    result = ''
    for ch in array:
        print(str(ch))
        result += str(ch)
    return result


p = reduce(lambda x, y: x*y, range(1, domain+1))
for i in range(0, p):
    print(i)

# print(p)
# for i in range(0, p):


